package containers;

public class GenericMethod {
	public <T> void f(T x){
		System.out.println(x.getClass().getName());
	}

	public <A,B,C> void f(A a,B b,C c){
		System.out.println("A :"+a.getClass().getName()+" B :"+b.getClass().getName()+" C :"+c.getClass().getName());
	}

	public <A,B> void g(A a,B b,String s){
		System.out.println("A :"+a.getClass().getName()+" B :"+b.getClass().getName());
		System.out.println("S : "+s);
	}

	public static void main(String[] args){
		GenericMethod gm = new GenericMethod();
		gm.f("");
		gm.f(1);
		gm.f(1.0);
		gm.f(2.0f);
		gm.f("c");
		gm.f(gm);
		gm.f("c",1,2);
		gm.g(1.1,2,"222");
	}
}
